<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ page isELIgnored="false"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>second</title>
<link href="css/second.css" type=text/css rel=stylesheet>
<link href="css/private.css" type=text/css rel=stylesheet>
<script type="text/javascript">
	function check(){
		var dname=document.getElementById("drama_name").value;
		var time=document.getElementById("time").value;
		var place=document.getElementById("place").value;
		var imageFile=document.getElementById("imageFile").value;
		var remark=document.getElementById("remark").value;
		if(dname=="" || time=="" || place==""){
			alert("请填写剧目完整信息");
			return false;
		}
		if(imageFile.length==0||imageFile==""){
			alert("上传剧目宣传照");
			return false;
		}
		return true;
	}
</script>
</head>
<body>

        <form action="dramaAdd" method="post" enctype=multipart/form-data > 
        <table>
           <tr>
               <th class="title">剧目</th>
               <td class="content"><input type="text" id="drama_name" name="drama_name"/></td>
           </tr>
           <tr>
               <th class="title">时间</th>
               <td class="content"><input type="text" id="time" name="time"></td>
           </tr>
           <tr>
               <th class="title">地点</th>
               <td class="content"><input type="text" id="place" name="place"></td>
           </tr>
           <tr>
               <th class="title">宣传照</th>
               <td class="content"><input  id="imageFile" id="imageFile"  name="imageFiles" multiple="multiple" type="file"></td>
           </tr>
           <tr>
               <th class="title">备注</th>
               <td class="content"><textarea type="text" id="remark" name="remark" ></textarea></td>
           </tr>
           <tr>
           		<td colspan="2">
                <input style="width: 100px;height: 30px;" class="submit" type="submit" value="发布">
                </td>
           </tr> 
          </table>
        </form>

</body>
</html>